from Base import message, intersect, SS_VALID
from DRG import MDCT_DRG

def group(record):
  adrg_zd = []
  adrg_zd1 = []
  adrg_ss = []
  adrg_ss1 = []
  dept_list = []

  if True and record.ssList and record.ssList[0] in SS_VALID:
    message('符合TB1入组条件，匹配规则：主手术匹配')

    if MDCT_DRG.TB19_group(record):
      return 'TB19'
        
    return 'TB1'
  else:
    return ''
  
